package com.ym.b2b.dictionary.dao;

import java.util.List;

import org.springframework.cache.annotation.Cacheable;
import org.springframework.dao.DataAccessException;

import com.ym.b2b.dictionary.sqlbean.EmSDictionary;
import com.zc.commons.base.Page;

public interface EmSDictionaryDAO {

    int updateEmSDictionary(EmSDictionary record) throws DataAccessException;

    void insertEmSDictionary(EmSDictionary record) throws DataAccessException;

    EmSDictionary searchEmSDictionary(Long replyId) throws DataAccessException;

    int deleteEmSDictionary(Long replyId) throws DataAccessException;

    Page<?> searchPageEmSDictionary(EmSDictionary emSDictionary, Page<EmSDictionary> page);

    int deleteMultipleEmSDictionary(String replyIdList);

    int updateEmSDictionaryBat(EmSDictionary emSDictionary);

    Long searchPageEmSDictionaryNum(EmSDictionary emSDictionary) throws DataAccessException;

    /**
     * 通过key 获取value
     * 
     * @Description:
     */
    List<EmSDictionary> showEmSDictionaryByKey(String key);

    List<EmSDictionary> showEmSDictionaryByKeyAndType(String key);
}
